import time


# date转string,指定参数是date类型
def date2str(date: time):
    print("convert date to string: ", date)
    return time.strftime("%Y-%m-%d %H:%M:%S", date)


